import Cookies from 'js-cookie'

const TokenKey = 'Admin-Token'
const UserIdKey = 'Admin-UserId'
const CompanyIdKey = 'Admin-CompanyId'
const RoleTypeKey = 'Admin-RoleType'
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}

export function getUserId() {
  return Cookies.get(UserIdKey)
}

export function setUserId(id) {
  return Cookies.set(UserIdKey, id)
}

export function removeUserId() {
  return Cookies.remove(UserIdKey)
}

export function getComanyId() {
  return Cookies.get(CompanyIdKey)
}

export function setComanyId(id) {
  return Cookies.set(CompanyIdKey, id)
}

export function removeComanyId() {
  return Cookies.remove(CompanyIdKey)
}

export function getRoleType() {
  return Cookies.get(RoleTypeKey)
}

export function setRoleType(id) {
  return Cookies.set(RoleTypeKey, id)
}

export function removeRoleType() {
  return Cookies.remove(RoleTypeKey)
}

export function getComanySession(){
	return sessionStorage.getItem("comanyArry") 
}

export function setComanySession(data){
	return sessionStorage.setItem("comanyArry", data) 
}


